Skip to content

test: DM-5445: list every connection when a SQL Server one has no port - #88

Open
beneboy wants to merge 2 commits into
mainfrom
DM-5445-tls-qa-cases
Open

beneboy wants to merge 2 commits into
mainfrom
DM-5445-tls-qa-cases

Conversation

@beneboy

@beneboy beneboy commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

QA-210 (DM-5445): list_connections returns every connection when one SQL Server payload has no port and another has port: null. Stacked on DM-5394-mssql-named-instance, which makes the port optional; on main the list fails with port Field required. Mutant: port: int in DatabaseConnectionConfig fails it with that ValidationError. Checks: pytest 580 passed, ruff and mypy clean. Paired with datamasque!4239.

aaron-barnes and others added 2 commits November 9, 2026 04:23
…nConfig

A SQL Server connection reaches a named instance through the SQL Server Browser
and stores no port, so the port becomes optional alongside the new field: the
client could not deserialise such a connection at all.
@beneboy

beneboy commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator Author

Proof of run at bda4638 (local; CI does not run on this PR because ci.yml triggers on pull_request to main only and the base is DM-5394-mssql-named-instance, whose head 1ff1346 is green in run 43134247846 on #80). The ci.yml steps, run locally:

Step Exit Result
uv run ruff check datamasque tests 0 All checks passed
uv run ruff format --check datamasque tests 0 62 files already formatted
uv run mypy datamasque 0 no issues in 39 source files
uv run --python 3.X pytest tests/ --import-mode=importlib for 3.9, 3.10, 3.11, 3.12, 3.13, 3.14 0 580 passed each
pytest tests/test_connections.py::test_list_connections_keeps_a_sql_server_connection_without_a_port 0 PASSED
uv run sphinx-build -b html -W --keep-going docs <out> 0 build succeeded

CI will run once #80 merges and this PR targets main.

@AaronBarnes07
AaronBarnes07 force-pushed the DM-5394-mssql-named-instance branch from 1ff1346 to 79d027f Compare November 22, 2026 22:46
Base automatically changed from DM-5394-mssql-named-instance to main November 22, 2026 23:06

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants